<div class="tableform"> 
<h3>盘点损益汇总表</h3>

<div class="division" >
<form id="Searchform" action="index.php?app=wms&ctl=admin_inventory&act=counterTables" method="post">
    <div class="division">
        <table width='100%' cellspacing="0" cellpadding="0" >
            <tr>
                <td>
                按盘点日期范围，从<{input type="date" name="begin_date" vtype="required" id="begin_date" value="{$begin_date}" }>
                至：<{input type="date" value="{$end_date}"  id="end_date"  name="end_date"}>
                
     <{button class="btn" type="submit" id="saveCurrent" label="查询"}>
                </td>
            </tr>
        </table>
   </div>
</form>

<div class="division" >
<{if $begin_date or $end_date}>统计日期范围： <{$begin_date}>至<{$end_date}> <{else}><{/if}>
</div>

        <table width='100%' cellspacing="0" cellpadding="0" class="gridlist">
            <thead>
            <tr>
                <th>盘点日期</th>
                <th>盘点人</th>
                <th>盘点损益</th>
                <th>盘点明细</th>
            </tr>
            </thead>
            <{foreach from=$list item=items key=keys}>
            <tbody>
            <tr class="toggler atStart" >
                <td><{$items.inventory_date|date_format:"%Y-%m-%d"}></td>
                <td><{$items.inventory_checker}></td>
                <td><{$items.difference|cur}></td>
                <td><a class="link" href="index.php?app=wms&ctl=admin_inventory&&act=confirm_detail&p[0]=<{$items.inventory_id}>&view=true&from=counterTables">查看</a></td>
            </tr>
            </tbody>
            <{/foreach}>
            <tbody>
            <tr>
               <td><b>小计：</b></td>
               <td>-</td>
               <td><{$subtotal.total_shortage_over|cur}></td>
               <td>-</td>
            </tr>
            </tbody>
            <tbody>
            <tr>
               <td><b>总计：</b></td>
               <td>-</td>
               <td><{$total.total_shortage_over|cur}></td>
               <td>-</td>
            </tr>
            </tbody>
        </table>
        
   </div>

</div>

<div class="gridlist-footer">
<{$pager}>&nbsp;&nbsp;共<{$count}>条，每页显示<{$pagelimit}>条 
</div>
 


